package cn.hj.domain.strategy.model.entity;

import cn.hj.domain.strategy.model.valobj.RuleLogicCheckTypeVO;
import lombok.*;

/**
 * @description: 规则树
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RuleActionEntity <T extends RuleActionEntity.RaffleEntity>{

    private  String code = RuleLogicCheckTypeVO.ALLOW.getCode();

    private  String info = RuleLogicCheckTypeVO.ALLOW.getInfo();

    private String ruleModel;

    private T data;


    public static class RaffleEntity{

    }


    @EqualsAndHashCode(callSuper = true)
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class RaffleBeforeEntity extends RaffleEntity{
        private long strategyId;

        private String ruleWeightValue;

        private Integer awardId;

    }

    public static class RaffleCenterEntity extends RaffleEntity{

    }

    public static class RaffleAfterEntity extends RaffleEntity{

    }

}
